<?php
/**
 * beimuaihui System
 * Copyright(c) 2011-2020 beimuaihui.
 * @license    http://www.gnu.org/licenses/gpl.html     This software Under GPL V3 License 
 * beimuaihui@gmail.com
 * http://code.google.com/p/beimuaihui/
 * $Id: IndexController.php 275 2011-08-04 10:49:26Z beimuaihui@gmail.com $
 */
require_once 'Zend/Controller/Action.php';
class Blog_IndexController extends Baogg_Controller_Action_Site
{
    /**
     * The default action - show the home page
     */
    public function indexAction ()
    {       
        $this->view->articles=$this->_helper->widget('articles_index');
        
       // var_dump($this->_helper->widget('articles_index'));exit;
        
        //var_dump($this->getFrontController()->getBaseUrl());
    //$db = Zend_Registry::get('db');
    //$stmt=$db->query("select * from {BAOGG_MDB_PREFIX}user;");
    //var_dump($stmt->fetchAll());
    //$stmt = $db->prepare("INSERT INTO server (key, value) VALUES (:key, :value)");
    //$stmt->bindParam('key', $key);
    //$stmt->bindParam('value', $value);
    //foreach ($_SERVER as $key => $value) {
    //	$stmt->execute();
    //}
    }
    public function headerAction ()
    {}
    public function navigatorAction ()
    {}
    public function rightsAction ()
    {}
    public function bodyAction ()
    {
    }
    public function articleAction ()
    {
        
      /*  $this->headLink()->appendStylesheet('/styles/basic.css')
                 ->headLink(array('rel' => 'favicon',
                                  'href' => '/img/favicon.ico'),
                                  'PREPEND')
                 ->prependStylesheet('/styles/moz.css',
                                     'screen',
                                     true,
                                     array('id' => 'my_stylesheet'));
        echo $this->headLink();*/
        
    }
}
